@layout("/common/container.html", {"title" : "导入模板"}){
<form class="e-form">
    <div class="card">
        <#card:head title="导入模板" icon="la la-cloud-upload"/>
        <div class="card-body">
            <div class="row">
                <!-- str:表单区域 -->
                <input type="hidden" id="id" name="id" value="${object.id}" />
                <div class="col-lg-6 col-12">
                    <#form:select id="importTable" name="导入表" required="true" other="data-live-search='true'" value="${object.importTable}" />
                </div>
                <div class="col-lg-6 col-12">
                    <#form:input id="name" name="名称" required="true" value="${object.name}" />
                </div>
                <div class="col-lg-6 col-12">
                    <#form:input id="importCode" tips="模板代码不可重复" name="模板代码" required="true" value="${object.importCode}" />
                </div>
                <div class="col-lg-6 col-12 e-hide">
                    <#form:input type="number" tips="包含标题行的开始行号" id="startRow" name="起始行" required="true" value="${object.startRow}" />
                </div>
                <div class="col-lg-6 col-12">
                    <#form:input tips="用于检查当前登录用户是否允许使用此模板" id="permissionCode" name="权限标识" required="true" value="${object.permissionCode}" />
                </div>
                <div class="col-12">
                    <div class="form-group row">
                        <label class="col-md-2 col-4 col-form-label " for="callback">
                            回调Bean：
                        </label>
                        <div class="col-md-10 col-8">
                            <input class="form-control " id="callback" name="callback" value="${object.callback}"/>
                            <span class="form-text text-muted">用于导入前&后处理数据（需实现com.frame.easy.base.service.ImportService），如不需要可忽略。示例（sampleImportDataServiceImpl）</span>
                        </div>
                    </div>
                </div>
                <div class="col-12">
                    <#form:textarea id="tips" name="备注" value="${object.tips}"/>
                </div>
                <!-- end:表单区域 -->
            </div>
        </div>
        <div class="card-foot">
            <div class="e-form-actions text-center">
                <#btn:save permission="sys:import:excel:template:save"/>
            </div>
        </div>
    </div>
</form>
<!--begin::页面脚本 -->
<#script src="static/modular/sys/import/excel/template/input.js" />
<!--end::页面脚本 -->
@}